package com.by_man.presenter.module_health_management.health_reminder;

import android.content.BroadcastReceiver;
import android.content.Context;
import android.content.Intent;

/**
 * Created by man on 2017-02-22.
 */
public class AlarmReceiver extends BroadcastReceiver {
    @Override
    public void onReceive(Context arg0, Intent data) {
        String tag = data.getStringExtra("tag");
        Intent intent = new Intent(arg0, AlarmClose.class);
        intent.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK);
        intent.putExtra("item", tag);
        arg0.startActivity(intent);
    }

}
